


trait Fs {}

struct Oss {}
struct Bos {}

impl Fs for Oss {}
impl Fs for Bos {}

fn get_name(fs: Box<dyn Fs>) -> &'static str {
    match fs {
        Oss => "oss",
        Bos => "bos",
    }
}

fn main() {

    let oss = Oss{};
    let bos = Bos{};
    let name = get_name(Box::new(oss));
    println!("{}", name);
    let name = get_name(Box::new(bos));
    println!("{}", name);
}